module.exports = function(app) {

    var isLoggedIn = require('../app/util/authUtil').isLoggedIn;
    var homeController = require('../app/controller/homeController');

    app.get('/', isLoggedIn);
    app.get('/', function(req, res) {
        homeController.init(req, res);
    });

    app.get('/home', isLoggedIn);
    app.get('/home', function(req, res) {
        homeController.init(req, res);
    });

    app.get('/home/welcome', isLoggedIn);
    app.get('/home/welcome', function(req, res) {
        res.render('home/welcome');
    });

    app.get('/home/changeWorkGroup', isLoggedIn);
    app.get('/home/changeWorkGroup', function(req, res) {
        homeController.changeWorkGroup(req, res);
    });

}
